package com.llkj.qingnianguoxue.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.llkj.qingnianguoxue.R;
import com.llkj.qingnianguoxue.bean.SearchResultBean;

import java.util.List;

/**
 * 搜索订阅结果
 */
public class SearchSubcribeAdapter extends BaseQuickAdapter<SearchResultBean.ResultBean, BaseViewHolder> {

    public SearchSubcribeAdapter(int layoutResId, List<SearchResultBean.ResultBean> data) {
        super(layoutResId, data);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, SearchResultBean.ResultBean item) {
        baseViewHolder.setText(R.id.tv_title, item.getName());
    }

}
